package com.stageadminserver.adminserver.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.stagecommon.common.pojo.Author;
import com.stagecommon.common.vo.AuthorVo;

import java.util.List;

public interface AuthorMapper extends BaseMapper<Author> {

    List<Author> selectRecommendAuthors();

    List<AuthorVo> selectAuthorsByKeyword(String keyword);

    List<AuthorVo> selectAllAuthors();

    Author selectAuthorByUsername(String username);

    void incretementWork(String username);

    void incretementDemandNum(String username);

    void decretementDemandNum(String username);

    void decretementWorkNum(String username);
}
